//
//  UINavigationController+push.m
//  FingerUniversity
//
//  Created by vantle on 16/3/14.
//  Copyright © 2016年 vantle. All rights reserved.
//

#import "UINavigationController+push.h"

@implementation UINavigationController (push)
- (void)pushViewController: (UIViewController*)controller
    animatedWithTransition: (UIViewAnimationTransition)transition {
    [self pushViewController:controller animated:NO];
    
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationDuration:0.5];
    [UIView setAnimationDelegate:self];
    [UIView setAnimationTransition:transition forView:self.view cache:YES];
    [UIView commitAnimations];
}
@end
